<?php $this->Html->addCrumb('Offices', '/Offices'); ?>
<?php $this->Html->addCrumb($interaction['Office']['o_name'], '/Offices/view/'.$interaction['Office']['o_id']); ?>
<?php $this->Html->addCrumb('Interactions', '/Interactions/View/'.$interaction['Interaction']['i_id']); ?>
<?php $this->Html->addCrumb('View'); ?>

<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Interaction'), array('action' => 'edit', $interaction['Interaction']['i_id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Interaction'), array('action' => 'delete', $interaction['Interaction']['i_id']), null, __('Are you sure you want to delete this interaction handled on the %s?', $interaction['Interaction']['i_date'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Interactions'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Interaction'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Offices'), array('controller' => 'offices', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Office'), array('controller' => 'offices', 'action' => 'add')); ?> </li>
	</ul>
</div>

<div class="interactionsView">
<h2><?php  echo __('Interaction Details'); ?></h2>
	<table>

		<tr>
		<th><?php echo __('Date'); ?></th>
		<td>
			<?php echo date("d-m-Y", strtotime(h($interaction['Interaction']['i_date']))); ?>
			&nbsp;
		</td>
		</tr>
		<tr>
		<th><?php echo __('Type'); ?></th>
		<td>
			<?php echo h($interaction['int_type']['type_name']); ?>
			&nbsp;
		</td>
		</tr>
		<tr>
		<th><?php echo __('Details'); ?></th>
		<td>
			<?php echo h($interaction['Interaction']['i_details']); ?>
			&nbsp;
		</td>
		</tr>
		<tr>
		<th><?php echo __('Employee'); ?></th>
		<td>
			<?php 
			echo h($interaction['Employee']['e_fname'].' '.$interaction['Employee']['e_lname']); ?>
			&nbsp;
		</td>
		</tr>
		<tr>
		<th><?php echo __('Office'); ?></th>
		<td>
			<?php echo $this->Html->link($interaction['Office']['o_name'], array('controller' => 'offices', 'action' => 'view', $interaction['Office']['o_id'])); ?>
			&nbsp;
		</td>
		</tr>
	</table>
</div>
